
$('header').load('/view/header.html', function(){
    var url = location.href, host = location.origin, page = '';
    
    if (url == host || url == host+'/') page = ''; 
    if (url.indexOf('blog') > -1) page = 'blog';
    if (url.indexOf('collect') > -1) page = 'collect';
    if (url.indexOf('recruit') > -1) page = 'recruit';
    if (url.indexOf('about') > -1) page = 'about';

    $('header a[href="/'+page+'"]').addClass('is-active');   
})

$('footer').hide();
//$('footer').load('../view/footer.html')
document.write('<script src="/static/js/libs/material.min.js"></script>')
